package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RetrievalRecordMapper;
import com.ruoyi.system.domain.RetrievalRecord;
import com.ruoyi.system.service.IRetrievalRecordService;

/**
 * 店铺提现记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-03-10
 */
@Service
public class RetrievalRecordServiceImpl implements IRetrievalRecordService 
{
    @Autowired
    private RetrievalRecordMapper retrievalRecordMapper;

    /**
     * 查询店铺提现记录
     * 
     * @param id 店铺提现记录ID
     * @return 店铺提现记录
     */
    @Override
    public RetrievalRecord selectRetrievalRecordById(Integer id)
    {
        return retrievalRecordMapper.selectRetrievalRecordById(id);
    }

    /**
     * 查询店铺提现记录列表
     * 
     * @param retrievalRecord 店铺提现记录
     * @return 店铺提现记录
     */
    @Override
    public List<RetrievalRecord> selectRetrievalRecordList(RetrievalRecord retrievalRecord)
    {
        return retrievalRecordMapper.selectRetrievalRecordList(retrievalRecord);
    }

    /**
     * 新增店铺提现记录
     * 
     * @param retrievalRecord 店铺提现记录
     * @return 结果
     */
    @Override
    public int insertRetrievalRecord(RetrievalRecord retrievalRecord)
    {
        return retrievalRecordMapper.insertRetrievalRecord(retrievalRecord);
    }

    /**
     * 修改店铺提现记录
     * 
     * @param retrievalRecord 店铺提现记录
     * @return 结果
     */
    @Override
    public int updateRetrievalRecord(RetrievalRecord retrievalRecord)
    {
        return retrievalRecordMapper.updateRetrievalRecord(retrievalRecord);
    }

    /**
     * 批量删除店铺提现记录
     * 
     * @param ids 需要删除的店铺提现记录ID
     * @return 结果
     */
    @Override
    public int deleteRetrievalRecordByIds(Integer[] ids)
    {
        return retrievalRecordMapper.deleteRetrievalRecordByIds(ids);
    }

    /**
     * 删除店铺提现记录信息
     * 
     * @param id 店铺提现记录ID
     * @return 结果
     */
    @Override
    public int deleteRetrievalRecordById(Integer id)
    {
        return retrievalRecordMapper.deleteRetrievalRecordById(id);
    }
}
